import { defHttp } from '/@/utils/http/axios';
var Api;
(function (Api) {
    Api["keysSize"] = "/sys/actuator/redis/keysSize";
    Api["memoryInfo"] = "/sys/actuator/redis/memoryInfo";
    Api["info"] = "/sys/actuator/redis/info";
})(Api || (Api = {}));
/**
 * key个数
 */
export const getKeysSize = () => {
    return defHttp.get({ url: Api.keysSize }, { isTransformResponse: false });
};
/**
 * 内存信息
 */
export const getMemoryInfo = () => {
    return defHttp.get({ url: Api.memoryInfo }, { isTransformResponse: false });
};
/**
 * 详细信息
 */
export const getInfo = () => {
    return defHttp.get({ url: Api.info });
};
export const getRedisInfo = () => {
    return Promise.all([getKeysSize(), getMemoryInfo()]);
};
